<ul id="<?php $sortable = "gridColumns_".get_class($model); echo $sortable; ?>">
<?php 
$items = array();
foreach($columns as $n=>$column) {
    $items[] = $model->getAttributeLabel($column['name']);
}
?>
</ul>
<?php $this->widget('zii.widgets.jui.CJuiSortable', array(
    'items'=>$items,
    // additional javascript options for the accordion plugin
    'options'=>array(
        'delay'=>'300',
    ),
)); ?>
<button type="button" onlick="alert(jQuery('#<?php echo $sortable ?>').sortable('serialize');">Serialize</button
